package cn.regexp.web.controller;

import cn.regexp.domain.Order;
import cn.regexp.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    private IOrderService orderService;

    @RequestMapping("/get")
    public Order get(Long userId, Long productId) {
        return orderService.get(userId, productId);
    }

}
